package com.py.warehouse.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

import java.math.BigDecimal;

/**
 * 货品信息对象 py_product
 * 
 * @author he
 * @date 2024-11-22
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long productId;

    /** 货品名称 */
    @Excel(name = "货品名称")
    private String productName;

    /** 状态（0.停用 1.启用） */
    @Excel(name = "状态", readConverterExp = "0=.停用,1=.启用")
    private String productStatus;

    /** 货品编号 */
    @Excel(name = "货品编号")
    private String productCode;

    /** 货品类型 */
    @Excel(name = "货品类型")
    private String productType;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String productModel;

    /** 单位 */
    @Excel(name = "单位")
    private Long productUnit;

    /** 供应商 */
    @Excel(name = "供应商")
    private Long productSupplier;

    /** 入库参考价 */
    @Excel(name = "入库参考价")
    private BigDecimal inboundPrice;

    /** 出库参考价 */
    @Excel(name = "出库参考价")
    private BigDecimal outboundPrice;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 保质期管理 */
    private String isEnable;

    /** 保质期天数 */
    private String shelfLifeDays;


    /** 保质期单位 */
    private Long shelfLifeUnit;

    /** 预警天数 */
    @Excel(name = "预警天数")
    private Long warningDays;

    /** 图片 */
    private String image;

    /** 备注 */
    private String productRemark;

    /** 逻辑删除 */
    private String isDelete;

    @Transient
    private WhInventory whInventory;

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductStatus(String productStatus) 
    {
        this.productStatus = productStatus;
    }

    public String getProductStatus() 
    {
        return productStatus;
    }
    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }
    public void setProductType(String productType) 
    {
        this.productType = productType;
    }

    public String getProductType() 
    {
        return productType;
    }
    public void setProductModel(String productModel) 
    {
        this.productModel = productModel;
    }

    public String getProductModel() 
    {
        return productModel;
    }
    public void setProductUnit(Long productUnit) 
    {
        this.productUnit = productUnit;
    }

    public Long getProductUnit() 
    {
        return productUnit;
    }
    public void setProductSupplier(Long productSupplier) 
    {
        this.productSupplier = productSupplier;
    }

    public Long getProductSupplier() 
    {
        return productSupplier;
    }
    public void setInboundPrice(BigDecimal inboundPrice) 
    {
        this.inboundPrice = inboundPrice;
    }

    public BigDecimal getInboundPrice() 
    {
        return inboundPrice;
    }
    public void setOutboundPrice(BigDecimal outboundPrice) 
    {
        this.outboundPrice = outboundPrice;
    }

    public BigDecimal getOutboundPrice() 
    {
        return outboundPrice;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setIsEnable(String isEnable) 
    {
        this.isEnable = isEnable;
    }

    public String getIsEnable() 
    {
        return isEnable;
    }
    public void setShelfLifeDays(String shelfLifeDays) 
    {
        this.shelfLifeDays = shelfLifeDays;
    }

    public String getShelfLifeDays()
    {
        return shelfLifeDays;
    }

    public Long getShelfLifeUnit()
    {
        return shelfLifeUnit;
    }
    public void setShelfLifeUnit(Long shelfLifeUnit)
    {
        this.shelfLifeUnit = shelfLifeUnit;
    }

    public void setWarningDays(Long warningDays) 
    {
        this.warningDays = warningDays;
    }

    public Long getWarningDays() 
    {
        return warningDays;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setProductRemark(String productRemark) 
    {
        this.productRemark = productRemark;
    }
    public String getProductRemark() 
    {
        return productRemark;
    }
    public void setIsDelete(String isDelete) 
    {
        this.isDelete = isDelete;
    }
    public String getIsDelete()
    {
        return isDelete;
    }

    public WhInventory getPyInbound() {
        return whInventory;
    }

    public void setPyInbound(WhInventory whInventory) {
        this.whInventory = whInventory;
    }

    @Override
    public String toString() {
        return "Product{" +
                "productId=" + productId +
                ", productName='" + productName + '\'' +
                ", productStatus='" + productStatus + '\'' +
                ", productCode='" + productCode + '\'' +
                ", productType='" + productType + '\'' +
                ", productModel='" + productModel + '\'' +
                ", productUnit=" + productUnit +
                ", productSupplier=" + productSupplier +
                ", inboundPrice=" + inboundPrice +
                ", outboundPrice=" + outboundPrice +
                ", sort=" + sort +
                ", isEnable='" + isEnable + '\'' +
                ", shelfLifeDays='" + shelfLifeDays + '\'' +
                ", shelfLifeUnit=" + shelfLifeUnit +
                ", warningDays=" + warningDays +
                ", image='" + image + '\'' +
                ", productRemark='" + productRemark + '\'' +
                ", isDelete='" + isDelete + '\'' +
                ", whInventory=" + whInventory +
                '}';
    }
}
